package cn.szzsi.common.model;

import cn.szzsi.common.model.base.BaseProductGift;

import java.util.List;

/**
 * Created by yuanzheng on 2016/12/27.
 */
//@TableBind(tableName = "product_gift",pkName = "id")
public class ProductGift extends BaseProductGift<ProductGift> {
    public static final ProductGift dao=new ProductGift().dao();

    public List<ProductGift> getByProductId(String productId){
        return dao.find("select * from mall_product_gift where productId=? order by createDate desc",productId);
    }

}
